<%if session[:role] == 0 %>
	<% for column in Event.content_columns %>
	<p>
	  <b><%= column.human_name %>:</b> <%=h @event.send(column.name) %>
	</p>
	<% end %>
	
	Players attending:
	
	<br />
	
	<%
	players = @event.users
	
	 for user in players %>
	
	<b> <%= user.user_name %> </b>
	
	<br />
	
	<% end %>
	
	<p style="color: red"><%= flash[:notice] %></p>
	
	
	<%= link_to 'Edit', :action => 'edit', :id => @event %> |
	<%= link_to 'Back', :action => 'list' %>
<%else%>
<% for column in Event.content_columns %>
	<p>
	  <b><%= column.human_name %>:</b> <%=h @event.send(column.name) %>
	</p>
	<% end %>
	
	Players attending:
	
	<br />
	
	<%
	players = @event.users
	
	 for user in players %>
	
	<b> <%= user.user_name %> </b>
	
	<br />
	
	<% end %>
	
	<p style="color: red"><%= flash[:notice] %></p>
	
	
	<%= link_to 'Back', :action => 'list' %>
	
<%end%>
